package com.liuchuanzheng.lcz_study_demo.room

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey

/**
 * @author 刘传政
 * @date 2021/8/18 10:26
 * QQ:1052374416
 * 电话:18501231486
 * 作用:
 * 注意事项:
 */
@Entity(tableName = "tb_user_info")
data class User(@ColumnInfo(name = "user_name")var userName: String,
                @ColumnInfo(name = "address") var address: String) {
    @PrimaryKey(autoGenerate = true)
    var id: Long = 0
    /**
     * 忽略参数必须添加默认值
     */
    @Ignore
    var sex: Boolean = false
}